{% load static %}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="theme-color" content="#f9f9f9">
    <title>{{ titles.name }}</title>
    <link rel="shortcut icon" href="{% static 'webstack2/assets/images/favicon.png' %}">
    <meta name="keywords" content="{{ titles.name }}">
    <link rel="stylesheet" href="{% static 'webstack2/assets/css/yuanshenfont/iconfont.css' %}">
    <link rel="stylesheet" href="{% static 'webstack2/assets/css/cat.css' %}">
    <link rel='stylesheet' id='block-library-css'
          href="{% static 'webstack2/assets/css/block-library.min-5.6.2.css' %}" type='text/css' media='all'>
    <link rel='stylesheet' id='iconfont-css' href='{% static 'webstack2/assets/css/iconfont-3.03029.1.css' %}'
          type='text/css' media='all'>
    <link rel='stylesheet' id='bootstrap-css' href='{% static 'webstack2/assets/css/bootstrap.min-4.3.1.css' %}'
          type='text/css' media='all'>
    <link rel='stylesheet' id='fancybox-css' href='{% static 'webstack2/assets/css/fancybox.min-3.5.7.css' %}'
          type='text/css' media='all'>
    <link rel='stylesheet' id='iowen-css' href='{% static 'webstack2/assets/css/style-3.03029.1.css' %}'
          type='text/css' media='all'>
    <link rel='stylesheet' id='custom-css' href='{% static 'webstack2/assets/css/custom-style.css' %}'
          type='text/css' media='all'>
    <link rel="stylesheet" id="fortawesome-css"
          href="{% static 'webstack2/assets/fontawesome-5.15.4/css/all.min.css' %}" type="text/css">
    <script type='text/javascript' src='{% static 'webstack2/assets/js/jquery.min-3.2.1.js' %}'
            id='jquery-js'></script>
    <script type='text/javascript' src='{% static 'webstack2/assets/js/content-search.js' %}'
            id='content-search-js'></script>
    <!-- 百度统计 -->
    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?085791e805a24491b43b06cf58ab31e7";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <!-- end 百度统计 -->


</head>
<body class="io-grey-mode">
<div id="loading">
    <style>
        .loader {
            width: 250px;
            height: 50px;
            line-height: 50px;
            text-align: center;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-family: helvetica, arial, sans-serif;
            text-transform: uppercase;
            font-weight: 900;
            color: #f1404b;
            letter-spacing: 0.2em
        }

        .loader::before,
        .loader::after {
            content: "";
            display: block;
            width: 15px;
            height: 15px;
            background: #f1404b;
            position: absolute;
            animation: load .7s infinite alternate ease-in-out
        }

        .loader::before {
            top: 0
        }

        .loader::after {
            bottom: 0
        }

        @keyframes load {
            0% {
                left: 0;
                height: 30px;
                width: 15px
            }

            50% {
                height: 8px;
                width: 40px
            }

            100% {
                left: 235px;
                height: 30px;
                width: 15px
            }
        }
    </style>
    <div class="loader">{{ titles.titleloader }}</div>
</div>

<div class="page-container">
    <div id="sidebar" class="sticky sidebar-nav fade animate-nav" style="width: 170px">
        <div class="modal-dialog h-100 sidebar-nav-inner">
            <div class="sidebar-logo border-bottom border-color">
                <!-- logo -->
                <div class="logo overflow-hidden">
                    <a href="" class="logo-expanded">
                        <img src="{% static "webstack2/assets/images/bt8-expand-light.png" %}" height="40"
                             class="logo-light"
                             alt="{{ titles.name }}">
                        <img src="{% static "webstack2/assets/images/bt8-expand-dark.png" %}" height="40"
                             class="logo-dark d-none"
                             alt="{{ titles.name }}">
                    </a>
                    <a href="" class="logo-collapsed">
                        <img src="{% static "webstack2/assets/images/bt.png" %}" height="40" class="logo-light"
                             alt="{{ titles.name }}">
                        <img src="{% static "webstack2/assets/images/bt.png" %}" height="40" class="logo-dark d-none"
                             alt="{{ titles.name }}">
                    </a>
                </div>
                <!-- logo end -->
            </div>
            <div class="sidebar-menu flex-fill">
                <div class="sidebar-scroll">
                    <div class="sidebar-menu-inner">
                        <ul>
                            {% for item in data %}
                                <li class="sidebar-item has-sub sidebar-show">
                                    <a href="#{{ item.cate }}" class="smooth change-href">
                                        <i class="fas {{ item.cate.icon }} icon-fw icon-lg mr-2"></i>
                                        <span class="title">{{ item.cate }}</span>
                                    </a>
                                    <ul>
                                        {% for sub in item.subcate %}
                                            <li>
                                                <a href="#{{ sub.subcate }}" class="smooth">
                                                    <span class="title">{{ sub.subcate }}</span>
                                                </a>
                                            </li>
                                        {% endfor %}
                                    </ul>
                                </li>
                            {% endfor %}
                        </ul>
                    </div>
                </div>
            </div>

            <div class="border-top py-2 border-color">
                <div class="flex-bottom">
                    <ul>
                        <li id="menu-item-237"
                            class="menu-item menu-item-type-post_type menu-item-object-page menu-item-237 sidebar-item">
                            <a href="https://space.bilibili.com/90158726" target="_blank">
                                <i class="fas fa-file-upload icon-fw icon-lg mr-2"></i>
                                <span>网站提交</span></a>
                        </li>

                        <li id="menu-item-212"
                            class="menu-item menu-item-type-custom menu-item-object-custom menu-item-212 sidebar-item">
                            <a href="#friendlink" class="smooth">
                                <i class="fab fa-staylinked icon-fw icon-lg mr-2"></i>
                                <span>友情链接</span>
                            </a>
                        </li>

                        <li id="menu-item-213"
                            class="menu-item menu-item-type-custom menu-item-object-custom menu-item-213 sidebar-item">
                            <a target="_blank" rel="noopener" href="https://gitee.com/longyu8/daohang">
                                <i class="fa fa-info-circle icon-fw icon-lg mr-2"></i>
                                <span>关于导航</span></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="main-content flex-fill grid-bg">
        <div class="big-header-banner">
            <div id="header" class="page-header sticky">
                <div class="navbar navbar-expand-md">
                    <div class="container-fluid p-0">
                        <a href="" class="navbar-brand d-md-none" title="{{ titles.name }}">
                            <img src="{% static 'webstack2/assets/images/bt.png' %}" class="logo-light"
                                 alt="{{ titles.name }}">
                            <img src="{% static 'webstack2/assets/images/bt.png' %}" class="logo-dark d-none"
                                 alt="{{ titles.name }}">
                        </a>

                        <div class="collapse navbar-collapse order-2 order-md-1">
                            <div class="header-mini-btn">
                                <label>
                                    <input id="mini-button" type="checkbox">
                                    <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
                                        <path class="line--1" d="M0 40h62c18 0 18-20-17 5L31 55"></path>
                                        <path class="line--2" d="M0 50h80"></path>
                                        <path class="line--3" d="M0 60h62c18 0 18 20-17-5L31 45"></path>
                                    </svg>
                                </label>

                            </div>

                            <ul class="navbar-nav site-menu" style="margin-right: 16px;">
                                <li>
                                    <a href="https://www.longyu.cool">
                                        <i class="fa fa-home fa-lg mr-2"></i>
                                        <span>首页</span>
                                    </a>
                                </li>
                                <li class="menu-item-has-children">
                                    <a>
                                        <i class="fa fa-book fa-lg mr-2"></i>
                                        <span>配置</span>
                                    </a>
                                    <ul class="sub-menu">
                                        {#                                        {{ range .list }}#}
                                        <li><a href="https://space.bilibili.com/90158726">暂定</a></li>
                                        <li><a href="https://jq.qq.com/?_wv=1027&k=enAkFwd3">提瓦特群</a></li>
                                        {{ end }}
                                    </ul>
                                </li>
                            </ul>

                            <div class="rounded-circle weather">
                                <div id="he-plugin-simple" style="display: contents;"></div>
                                <script>WIDGET = {
                                    CONFIG: {
                                        "modules": "01234",
                                        "background": 5,
                                        "tmpColor": "E4C600",
                                        "tmpSize": 14,
                                        "cityColor": "E4C600",
                                        "citySize": 14,
                                        "aqiColor": "#E4C600",
                                        "aqiSize": 14,
                                        "weatherIconSize": 24,
                                        "alertIconSize": 18,
                                        "padding": "10px 10px 10px 10px",
                                        "shadow": "1",
                                        "language": "auto",
                                        "borderRadius": 5,
                                        "fixed": "false",
                                        "vertical": "middle",
                                        "horizontal": "left",
                                        "key": "085791e805a24491b43b06cf58ab31e7"
                                    }
                                }
                                </script>
                                <script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>
                            </div>
                        </div>

                        <ul class="nav navbar-menu text-xs order-1 order-md-2">
                            <!-- 一言 -->
                            <li class="nav-item mr-3 mr-lg-0 d-none d-lg-block">
                                <script>
                                    fetch('https://v1.hitokoto.cn')
                                        .then(response => response.json())
                                        .then(data => {
                                            const hitokoto = document.getElementById('hitokoto_text')
                                            hitokoto.href = 'https://hitokoto.cn/?uuid=' + data.uuid
                                            hitokoto.innerText = data.hitokoto
                                        })
                                        .catch(console.error)
                                </script>
                                <div id="hitokoto"><a href="https://jq.qq.com/?_wv=1027&k=enAkFwd3" target="_blank">QQ群:544291942,机器人即时查询练度。</a>
                                </div>
                                <div id="hitokoto"><a href="https://jq.qq.com/?_wv=1027&k=enAkFwd3" target="_blank"
                                                      id="hitokoto_text">疏影横斜水清浅，暗香浮动月黄昏。</a></div>
                            </li>
                            <!-- 一言 end -->
                            <li class="nav-search ml-3 ml-md-4">
                                <a href="javascript:" data-toggle="modal" data-target="#search-modal"><i
                                        class="iconfont icon-search icon-2x"></i></a>
                            </li>
                            <li class="nav-item d-md-none mobile-menu ml-3 ml-md-4">
                                <a href="javascript:" id="sidebar-switch" data-toggle="modal"
                                   data-target="#sidebar"><i class="iconfont icon-classification icon-2x"></i></a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="placeholder" style="height:74px"></div>
        </div>
        {#        搜索区#}
        <div class="header-big  post-top css-color mb-4" id="search-bg" style="">
            <div class="s-search">
                <div id="search" class="s-search mx-auto">
                    <div id="search-list-menu" class="hide-type-list">
                        <div class="s-type text-center">
                            <div class="s-type-list big">
                                <div class="anchor" style="position: absolute; left: 50%; opacity: 0;"></div>
                                <label for="type-baidu" data-id="group-a"><span>常用</span></label>
                                <label for="type-baidu1" data-id="group-b"><span>搜索</span></label>
                                <label for="type-br" data-id="group-c"><span>工具</span></label>
                                <label for="type-zhihu" data-id="group-d"><span>社区</span></label>
                                <label for="type-taobao1" data-id="group-e"><span>生活</span></label>
                                <label for="type-zhaopin" data-id="group-f"><span>求职</span></label>
                            </div>
                        </div>
                    </div>

                    <form action="https://www.baidu.com?s=" method="get" target="_blank" class="super-search-fm">
                        <input type="text" id="search-text" class="form-control smart-tips search-key"
                               zhannei="" placeholder="输入关键字搜索" style="outline:0" autocomplete="off">
                        <button class="submit" type="submit"><i class="iconfont icon-search"></i></button>
                    </form>

                    <div id="search-list" class="hide-type-list">
                        <div class="search-group group-a">
                            <ul class="search-type">
                                <li><input hidden="" type="radio" name="type" checked="checked"
                                           id="type-baidu"
                                           value="https://www.baidu.com/s?wd="
                                           data-placeholder="百度一下，你就知道">
                                    <label for="type-baidu"><span class="text-muted">百度</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-bing"
                                           value="https://cn.bing.com/search?q="
                                           data-placeholder="微软 Bing 搜索">
                                    <label for="type-bing"><span class="text-muted">必应</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-google"
                                           value="https://www.google.com/search?q="
                                           data-placeholder="谷歌搜索">
                                    <label for="type-google"><span class="text-muted">谷歌</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-anaconda"
                                           value="https://anaconda.org/search?q=" data-placeholder="Anaconda 软件搜索">
                                    <label for="type-anaconda"><span class="text-muted">软件</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-pubmed"
                                           value="https://pubmed.ncbi.nlm.nih.gov/?term="
                                           data-placeholder="PubMed 搜索/文章标题/关键字">
                                    <label for="type-pubmed"><span class="text-muted">文献</span></label>
                                </li>
                            </ul>
                        </div>
                        <div class="search-group group-b">
                            <ul class="search-type">
                                <li><input hidden="" type="radio" name="type"
                                           id="type-baidu1"
                                           value="https://www.baidu.com/s?wd="
                                           data-placeholder="百度一下，你就知道">
                                    <label for="type-baidu1"><span class="text-muted">百度</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-google1"
                                           value="https://www.google.com/search?q="
                                           data-placeholder="谷歌搜索">
                                    <label for="type-google1"><span class="text-muted">谷歌</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-360"
                                           value="https://www.so.com/s?q="
                                           data-placeholder="360 好搜">
                                    <label for="type-360"><span class="text-muted">360</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-sogo"
                                           value="https://www.sogou.com/web?query="
                                           data-placeholder="搜狗搜索">
                                    <label for="type-sogo"><span class="text-muted">搜狗</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-bing1"
                                           value="https://cn.bing.com/search?q="
                                           data-placeholder="微软 Bing 搜索">
                                    <label for="type-bing1"><span class="text-muted">必应</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-sm"
                                           value="https://yz.m.sm.cn/s?q="
                                           data-placeholder="UC 移动端搜索">
                                    <label for="type-sm"><span class="text-muted">神马</span></label>
                                </li>
                            </ul>
                        </div>
                        <div class="search-group group-c">
                            <ul class="search-type">
                                <li><input hidden="" type="radio" name="type"
                                           id="type-br"
                                           value="https://rank.chinaz.com/all/"
                                           data-placeholder="请输入网址(不带 https://)">
                                    <label for="type-br"><span class="text-muted">权重查询</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-links"
                                           value="https://link.chinaz.com/"
                                           data-placeholder="请输入网址(不带 https://)">
                                    <label for="type-links"><span class="text-muted">友链检测</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-icp"
                                           value="https://icp.aizhan.com/"
                                           data-placeholder="请输入网址(不带 https://)">
                                    <label for="type-icp"><span class="text-muted">备案查询</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-ping"
                                           value="https://ping.chinaz.com/"
                                           data-placeholder="请输入网址(不带 https://)">
                                    <label for="type-ping"><span class="text-muted">PING 检测</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-404"
                                           value="https://tool.chinaz.com/Links/?DAddress="
                                           data-placeholder="请输入网址(不带https://)">
                                    <label for="type-404"><span class="text-muted">死链检测</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-ciku"
                                           value="https://www.ciku5.com/s?wd="
                                           data-placeholder="请输入关键词">
                                    <label for="type-ciku"><span class="text-muted">关键词挖掘</span></label>
                                </li>
                            </ul>
                        </div>
                        <div class="search-group group-d">
                            <ul class="search-type">
                                <li><input hidden="" type="radio" name="type"
                                           id="type-zhihu"
                                           value="https://www.zhihu.com/search?type=content&q="
                                           data-placeholder="知乎">
                                    <label for="type-zhihu"><span class="text-muted">知乎</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-wechat"
                                           value="https://weixin.sogou.com/weixin?type=2&query="
                                           data-placeholder="微信">
                                    <label for="type-wechat"><span class="text-muted">微信</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-weibo"
                                           value="https://s.weibo.com/weibo/"
                                           data-placeholder="微博">
                                    <label for="type-weibo"><span class="text-muted">微博</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-douban"
                                           value="https://www.douban.com/search?q="
                                           data-placeholder="豆瓣">
                                    <label for="type-douban"><span class="text-muted">豆瓣</span></label>
                                </li>
                            </ul>
                        </div>
                        <div class="search-group group-e">
                            <ul class="search-type">
                                <li><input hidden="" type="radio" name="type"
                                           id="type-taobao1"
                                           value="https://s.taobao.com/search?q="
                                           data-placeholder="淘宝">
                                    <label for="type-taobao1"><span class="text-muted">淘宝</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-jd"
                                           value="https://search.jd.com/Search?keyword="
                                           data-placeholder="京东">
                                    <label for="type-jd"><span class="text-muted">京东</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-xiachufang"
                                           value="https://www.xiachufang.com/search/?keyword="
                                           data-placeholder="下厨房">
                                    <label for="type-xiachufang"><span class="text-muted">下厨房</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-xiangha"
                                           value="https://www.xiangha.com/so/?q=caipu&s="
                                           data-placeholder="香哈菜谱">
                                    <label for="type-xiangha"><span class="text-muted">香哈菜谱</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-12306"
                                           value="https://www.12306.cn/?"
                                           data-placeholder="12306">
                                    <label for="type-12306"><span class="text-muted">12306</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-qunar"
                                           value="https://www.qunar.com/?"
                                           data-placeholder="去哪儿">
                                    <label for="type-qunar"><span class="text-muted">去哪儿</span></label>
                                </li>
                            </ul>
                        </div>
                        <div class="search-group group-f">
                            <ul class="search-type">
                                <li><input hidden="" type="radio" name="type"
                                           id="type-zhaopin"
                                           value="https://sou.zhaopin.com/jobs/searchresult.ashx?kw="
                                           data-placeholder="智联招聘">
                                    <label for="zhaopin"><span class="text-muted">智联招聘</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-51job"
                                           value="https://search.51job.com/?"
                                           data-placeholder="前程无忧">
                                    <label for="type-51job"><span class="text-muted">前程无忧</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-lagou"
                                           value="https://www.lagou.com/jobs/list_"
                                           data-placeholder="拉钩网">
                                    <label for="type-lagou"><span class="text-muted">拉钩网</span></label>
                                </li>
                                <li><input hidden="" type="radio" name="type"
                                           id="type-liepin"
                                           value="https://www.liepin.com/zhaopin/?key="
                                           data-placeholder="猎聘网">
                                    <label for="type-liepin"><span class="text-muted">猎聘网</span></label>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="card search-smart-tips search-hot-text">
                        <ul id="word" style="display: none"></ul>
                    </div>
                </div>
            </div>
            <div style="position:fixed;left: 50%;">
                <a href='https://gitee.com/longyu8/daohang'><img
                        src='https://gitee.com/longyu8/daohang/widgets/widget_4.svg' alt='Fork me on Gitee'></img></a>
            </div>
            <!--div class="bulletin-big mx-3 mx-md-0">
                <div id="bulletin_box" class="card my-2">
                    <div class="card-body py-1 px-2 px-md-3 d-flex flex-fill text-xs text-muted">
                        <div><i class="iconfont icon-bulletin" style="line-height:25px"></i></div>
                        <div class="bulletin mx-1 mx-md-2 carousel-vertical">
                            <div class="carousel slide" data-ride="carousel" data-interval="3000">
                                <div class="carousel-inner" role="listbox">
                                    <div class="carousel-item active"><a class="overflowClip_1"
                                            href="#">所长导航 - 用心精选每一个链接</a></div>
                                    <div class="carousel-item "><a class="overflowClip_1"
                                            href="#">所长导航 - 有范的导航网站</a></div>
                                </div>
                            </div>
                        </div>
                        <div class="flex-fill"></div>
                        <a title="关闭" href="javascript:;" rel="external nofollow" class="bulletin-close"
                            onclick="$('#bulletin_box').slideUp('slow');"><i class="iconfont icon-close"
                                style="line-height:25px"></i></a>
                    </div>
                </div>
            </div-->
        </div>
        <div id="content" class="content-site customize-site">

            {% for item in data %}
                {% for sub in item.subcate %}
                    <div class="d-flex flex-fill">
                        <h4 class="text-gray text-lg mb-4">
                            <i class="" id="{{ item.cate }}"></i>
                        </h4>
                        <h4 class="text-gray text-lg mb-4">
                            <i class="site-tag iconfont icon-tag icon-lg mr-1" id="{{ sub.subcate }}"></i>
                            {{ sub.subcate }}
                        </h4>
                        <div class="flex-fill"></div>
                    </div>
                    {#                    获取内容#}
                    <div class="row">
                        {% for site in sub.sites %}
                            <div class="url-card col-6  col-sm-6 col-md-4 col-xl-5a col-xxl-6a">
                                <div class="url-body default">
                                    <a href="{{ site.url }}" target="_blank" data-id="" data-url="{{ site.url }}"
                                       class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom"
                                       data-original-title="{{ site.describtion }}">
                                        <div class="card-body">
                                            <div class="url-content d-flex align-items-center">
                                                <div class="url-img mr-2 d-flex align-items-center justify-content-center">
                                                    <img data-src="/static/webstack2/images/logos/{{ site.logo_url }}"
                                                         src="/static/webstack2/images/logos/{{ site.logo_url }}"
                                                         onerror="javascript:this.src='/static/404.ico'"
                                                         alt="{{ site.name }}"
                                                         class="lazy" width="30">
                                                </div>
                                                <div class="url-info flex-fill">
                                                    <div class="text-sm overflowClip_1">
                                                        <strong>{{ site.name }}</strong>
                                                    </div>
                                                    <p class="overflowClip_1 m-0 text-muted text-xs">
                                                        {{ site.describtion }}</p>
                                                </div>
                                            </div>
                                        </div>
                                    </a>
                                    <a href="{{ site.url }}" class="togo text-center text-muted is-views" data-id="689"
                                       data-toggle="tooltip" data-placement="right" title="直达" rel="nofollow">
                                        <i class="iconfont icon-goto"></i>
                                    </a>
                                </div>
                            </div>

                        {% endfor %}
                    </div>
                {% endfor %}
            {% endfor %}

            <h4 class="text-gray text-lg mb-4">
                <i class="iconfont icon-book-mark-line icon-lg mr-2" id="friendlink"></i>友情链接
            </h4>
            <div class="friendlink text-xs card">
                <div class="card-body">
                    {% for fri in fritotal %}
                        <a href="{{ fri.url }}" title="{{ fri.name }}" target="_blank">{{ fri.name }}</a>
                    {% endfor %}
                    {#                    <a href="https://bioitee.com/" title="BioIT爱好者" target="_blank">BioIT爱好者</a>#}
                    {#                    <a href="https://www.iiice.cn" title="下次一定" target="_blank">下次一定</a>#}
                </div>
            </div>
        </div>
        <footer class="main-footer footer-type-1 text-xs">
            <div id="footer-tools" class="d-flex flex-column">
                <a href="https://jq.qq.com/?_wv=1027&k=enAkFwd3" class="btn rounded-circle kefu m-1" target="_blank"
                   data-toggle="tooltip" data-placement="left" title="云崽web">
                    <span class="icon iconfont icon-amber"></span>
                </a>

                <a href="javascript:" id="go-to-up" class="btn rounded-circle go-up m-1" rel="go-top">
                    <i class="iconfont icon-to-up"></i>
                </a>
                <!-- 右下角搜索  -->
                <a href="javascript:" data-toggle="modal" data-target="#search-modal" class="btn rounded-circle m-1"
                   rel="search" one-link-mark="yes">
                    <i class="iconfont icon-search"></i>
                </a>

                <a href="https://jq.qq.com/?_wv=1027&k=enAkFwd3" class="btn rounded-circle kefu m-1" target="_blank"
                   data-toggle="tooltip" data-placement="left" title="联系我们">
                    <i class="mode-ico iconfont icon-qq"></i>
                </a>
                <!-- 右下角搜索 end -->
                <a href="javascript:" onclick="window.location.href='javascript:switchNightMode()'"
                   class="btn rounded-circle switch-dark-mode m-1" id="yejian"
                   data-toggle="tooltip" data-placement="left" title="夜间模式">
                    <i class="mode-ico iconfont icon-light"></i>
                </a>
            </div>
            <div class="footer-inner">
                <div class="footer-text">
                    {{ titles.end }}
                    {#                    '本站内容源自互联网，如有内容侵犯了你的权益，请联系删除相关内容，联系邮箱：longyu_w@foxmail.com#}
                    {#                    <br/>&copy; 2021 - {year} By [WebStack-Hugo](https://github.com/shenweiyan/WebStack-Hugo) | [Bio IT#}
                    <a href="https://beian.miit.gov.cn">冀ICP备2022000685号-1</a>
                    <br/>
                    {{ now.Year }}
                </div>
            </div>
        </footer>
    </div><!-- main-content end -->
</div><!-- page-container end -->
<!--  modal_search  -->

<!--  footer  -->
<script type='text/javascript' src='{% static "webstack2/assets/js/jquery.ui.touch-punch.min-0.2.2.js" %}'
        id='jqueryui-touch-js'></script>
<script type='text/javascript' src='{% static "webstack2/assets/js/clipboard.min-5.6.2.js" %}'
        id='clipboard-js'></script>
<script type='text/javascript' src='{% static "webstack2/assets/js/tooltip-extend.js" %}'
        id='iplaycode-nav-js'></script>
<script type='text/javascript' id='popper-js-extra'>
    /* <![CDATA[ */
    //var theme = {"ajaxurl":"https:\/\/nav.baidu.com\/wp-admin\/admin-ajax.php","addico":"https:\/\/nav.baidu.cn\/wp-content\/themes\/onenav\/images\/add.png","order":"asc","formpostion":"top","defaultclass":"io-grey-mode","isCustomize":"1","icourl":"https:\/\/api.badi.cn\/favicon\/","icopng":".png","urlformat":"1","customizemax":"10","newWindow":"0","lazyload":"1","minNav":"1","loading":"1","hotWords":"baidu","classColumns":" col-sm-6 col-md-4 col-xl-5a col-xxl-6a ","apikey":"TWpBeU1UVTNOekk1TWpVMEIvZ1M2bFVIQllUMmxsV1dZelkxQTVPVzB3UW04eldGQmxhM3BNWW14bVNtWk4="};
    var theme = {
        "ajaxurl": "",
        "addico": "https:\/\/nav.baidu.cn\/wp-content\/themes\/onenav\/images\/add.png",
        "order": "asc",
        "formpostion": "top",
        "defaultclass": "io-grey-mode",
        "isCustomize": "1",
        "icourl": "",
        "icopng": ".png",
        "urlformat": "1",
        "customizemax": "10",
        "newWindow": "0",
        "lazyload": "1",
        "minNav": "1",
        "loading": "1",
        "hotWords": "baidu",
        "classColumns": " col-sm-6 col-md-4 col-xl-5a col-xxl-6a ",
        "apikey": "TWpBeU1UVTNOekk1TWpVMEIvZ1M2bFVIQllUMmxsV1dZelkxQTVPVzB3UW04eldGQmxhM3BNWW14bVNtWk4="
    };
    /* ]]> */
</script>
<script type='text/javascript' src='{% static "webstack2/assets/js/popper.min.js" %}' id='popper-js'></script>
<script type='text/javascript' src='{% static "webstack2/assets/js/bootstrap.min-4.3.1.js" %}'
        id='bootstrap-js'></script>
<script type='text/javascript' src='{% static "webstack2/assets/js/theia-sticky-sidebar-1.5.0.js" %}'
        id='sidebar-js'></script>
<script type='text/javascript' src='{% static "webstack2/assets/js/lazyload.min-12.4.0.js" %}'
        id='lazyload-js'></script>
<script type='text/javascript' src='{% static "webstack2/assets/js/fancybox.min-3.5.7.js" %}'
        id='lightbox-js-js'></script>
<script type='text/javascript' src='{% static "webstack2/assets/js/app-anim.js" %}' id='appanim-js'></script>
{#<script type='text/javascript' src='{{ $.Site.Params.siteurl }}/assets/js/app-mini.js' id='appmini-js'></script>#}
<script type="text/javascript">
    $(document).ready(function () {
        var siteWelcome = $('#loading');
        siteWelcome.addClass('close');
        setTimeout(function () {
            siteWelcome.remove();
        }, 600);
    });
</script>
<script>
    $(document).ready(function () {
        setTimeout(function () {
            if ($('a.smooth[href="' + window.location.hash + '"]')[0]) {
                $('a.smooth[href="' + window.location.hash + '"]').click();
            } else if (window.location.hash != '') {
                $("html, body").animate({
                    scrollTop: $(window.location.hash).offset().top - 90
                }, {
                    duration: 500,
                    easing: "swing"
                });
            }
        }, 300);
        $(document).on('click', 'a.smooth', function (ev) {
            if ($('#sidebar').hasClass('show') && !$(this).hasClass('change-href')) {
                $('#sidebar').modal('toggle');
            }
            if ($(this).attr("href").substr(0, 1) == "#") {
                $("html, body").animate({
                    scrollTop: $($(this).attr("href")).offset().top - 90
                }, {
                    duration: 500,
                    easing: "swing"
                });
            }
            if ($(this).hasClass('go-search-btn')) {
                $('#search-text').focus();
            }
            if (!$(this).hasClass('change-href')) {
                var menu = $("a" + $(this).attr("href"));
                menu.click();
                toTarget(menu.parent().parent(), true, true);
            }
        });
        $(document).on('click', 'a.tab-noajax', function (ev) {
            var url = $(this).data('link');
            if (url)
                $(this).parents('.d-flex.flex-fill.flex-tab').children('.btn-move.tab-move').show().attr('href', url);
            else
                $(this).parents('.d-flex.flex-fill.flex-tab').children('.btn-move.tab-move').hide();
        });

    });
</script>

<script>
    //夜间模式
    (function () {
        if (document.cookie.replace(/(?:(?:^|.*;\s*)night\s*\=\s*([^;]*).*$)|^.*$/, "$1") === '') {
            if (new Date().getHours() > 22 || new Date().getHours() < 6) {
                document.body.classList.remove('io-black-mode');
                document.body.classList.add('io-grey-mode');
                document.cookie = "night=1;path=/";
                console.log('夜间模式开启');
            } else {
                document.body.classList.remove('night');
                document.cookie = "night=0;path=/";
                console.log('夜间模式关闭');
            }
        } else {
            var night = document.cookie.replace(/(?:(?:^|.*;\s*)night\s*\=\s*([^;]*).*$)|^.*$/, "$1") || '0';
            if (night == '0') {
                document.body.classList.remove('night');
            } else if (night == '1') {
                document.body.classList.add('night');
            }
        }
    })();
    //夜间模式切换
    $("#search-bg").css("background-image", "url({% static 'webstack2/assets/images/bg-dna.jpg' %})");   //默认浅色背景
    function switchNightMode() {
        var night = document.cookie.replace(/(?:(?:^|.*;\s*)night\s*\=\s*([^;]*).*$)|^.*$/, "$1") || '0';
        if (night == '0') {
            $("#search-bg").css("background-image", "url({% static 'webstack2/assets/images/bg-dna.jpg' %})");
            document.body.classList.remove('io-grey-mode');
            document.body.classList.add('io-black-mode');
            document.cookie = "night=1;path=/"
            console.log(' ');
            $(".switch-dark-mode").attr("data-original-title", "日间模式");
            $(".mode-ico").removeClass("icon-night");
            $(".mode-ico").addClass("icon-light");
        } else {
            $("#search-bg").css("background-image", "url({% static 'webstack2/assets/images/bg-dna.jpg' %})")
            document.body.classList.remove('io-black-mode');
            document.body.classList.add('io-grey-mode');
            document.cookie = "night=0;path=/"
            console.log(' ');
            $(".switch-dark-mode").attr("data-original-title", "夜间模式");
            $(".mode-ico").removeClass("icon-light");
            $(".mode-ico").addClass("icon-night");
        }
    }
</script>

</body>
</html>
